3.2518 \(\int x^{-1-3 n} \left (a+b x^n\right ) \, dx\)

Optimal. Leaf size=27 \[ -\frac{a x^{-3 n}}{3 n}-\frac{b x^{-2 n}}{2 n} \]

[Out]

-a/(3*n*x^(3*n)) - b/(2*n*x^(2*n))

_______________________________________________________________________________________

Rubi [A]  time = 0.0217624, antiderivative size = 27, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067 \[ -\frac{a x^{-3 n}}{3 n}-\frac{b x^{-2 n}}{2 n} \]

Antiderivative was successfully verified.

[In]  Int[x^(-1 - 3*n)*(a + b*x^n),x]

[Out]

-a/(3*n*x^(3*n)) - b/(2*n*x^(2*n))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 4.04937, size = 20, normalized size = 0.74 \[ - \frac{a x^{- 3 n}}{3 n} - \frac{b x^{- 2 n}}{2 n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**(-1-3*n)*(a+b*x**n),x)

[Out]

-a*x**(-3*n)/(3*n) - b*x**(-2*n)/(2*n)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0110749, size = 22, normalized size = 0.81 \[ -\frac{x^{-3 n} \left (2 a+3 b x^n\right )}{6 n} \]

Antiderivative was successfully verified.

[In]  Integrate[x^(-1 - 3*n)*(a + b*x^n),x]

[Out]

-(2*a + 3*b*x^n)/(6*n*x^(3*n))

_______________________________________________________________________________________

Maple [A]  time = 0.023, size = 27, normalized size = 1. \[{\frac{1}{ \left ({{\rm e}^{n\ln \left ( x \right ) }} \right ) ^{3}} \left ( -{\frac{a}{3\,n}}-{\frac{b{{\rm e}^{n\ln \left ( x \right ) }}}{2\,n}} \right ) } \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^(-1-3*n)*(a+b*x^n),x)

[Out]

(-1/3*a/n-1/2*b/n*exp(n*ln(x)))/exp(n*ln(x))^3

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)*x^(-3*n - 1),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.22287, size = 30, normalized size = 1.11 \[ -\frac{3 \, b x^{n} + 2 \, a}{6 \, n x^{3 \, n}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)*x^(-3*n - 1),x, algorithm="fricas")

[Out]

-1/6*(3*b*x^n + 2*a)/(n*x^(3*n))

_______________________________________________________________________________________

Sympy [A]  time = 15.9825, size = 27, normalized size = 1. \[ \begin{cases} - \frac{a x^{- 3 n}}{3 n} - \frac{b x^{- 2 n}}{2 n} & \text{for}\: n \neq 0 \\\left (a + b\right ) \log{\left (x \right )} & \text{otherwise} \end{cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**(-1-3*n)*(a+b*x**n),x)

[Out]

Piecewise((-a*x**(-3*n)/(3*n) - b*x**(-2*n)/(2*n), Ne(n, 0)), ((a + b)*log(x), T
rue))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.214024, size = 31, normalized size = 1.15 \[ -\frac{{\left (3 \, b e^{\left (n{\rm ln}\left (x\right )\right )} + 2 \, a\right )} e^{\left (-3 \, n{\rm ln}\left (x\right )\right )}}{6 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((b*x^n + a)*x^(-3*n - 1),x, algorithm="giac")

[Out]

-1/6*(3*b*e^(n*ln(x)) + 2*a)*e^(-3*n*ln(x))/n